.class public Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;
.super Lcom/nemustech/regina/ElementReginaWidget;
.source "AppointmentWidget.java"


# static fields
.field private static final DATE_RANGE:I = 0x7

.field private static final PREFERENCE_DRAWABLE_ID:[I = null

.field private static final PREFERENCE_TITLE:[Ljava/lang/String; = null

.field private static final TAG:Ljava/lang/String; = "ApptWidget"

.field private static gBeginTime:Landroid/text/format/Time;

.field private static gEndTime:Landroid/text/format/Time;


# instance fields
.field mActorShowAppSelDialog:Ljava/lang/Runnable;

.field private mApptDB:Lcom/nemustech/regina/widgets/appointment/AppointmentDB;

.field private mArrayAppt:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;",
            ">;"
        }
    .end annotation
.end field

.field private mDummyToday:Landroid/text/format/Time;

.field private mToday:Landroid/text/format/Time;


# direct methods
.method static constructor <clinit>()V
    .locals 4

    .prologue
    const/4 v3, 0x2

    .line 37
    new-array v0, v3, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "Add Appointment"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "View Appointment"

    aput-object v2, v0, v1

    sput-object v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->PREFERENCE_TITLE:[Ljava/lang/String;

    .line 42
    new-array v0, v3, [I

    fill-array-data v0, :array_0

    sput-object v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->PREFERENCE_DRAWABLE_ID:[I

    .line 376
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    sput-object v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    .line 377
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    sput-object v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gEndTime:Landroid/text/format/Time;

    return-void

    .line 42
    nop

    :array_0
    .array-data 0x4
        0x2bt 0x0t 0x8t 0x1t
        0x50t 0x0t 0x2t 0x7ft
    .end array-data
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 64
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/nemustech/regina/ElementReginaWidget;-><init>(Landroid/content/Context;Z)V

    .line 55
    new-instance v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget$1;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget$1;-><init>(Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;)V

    iput-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    .line 65
    new-instance v0, Lcom/nemustech/regina/widgets/appointment/AppointmentDB;

    check-cast p1, Landroid/app/Activity;

    .end local p1
    invoke-direct {v0, p1}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mApptDB:Lcom/nemustech/regina/widgets/appointment/AppointmentDB;

    .line 66
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    .line 67
    new-instance v0, Landroid/text/format/Time;

    invoke-direct {v0}, Landroid/text/format/Time;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mDummyToday:Landroid/text/format/Time;

    .line 68
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method private getDrawableToBitmap(IILandroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;
    .locals 4
    .parameter "width"
    .parameter "height"
    .parameter "drawable"

    .prologue
    const/4 v3, 0x0

    .line 280
    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {p1, p2, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 282
    .local v0, bitmap:Landroid/graphics/Bitmap;
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 283
    .local v1, canvas:Landroid/graphics/Canvas;
    invoke-virtual {p3, v3, v3, p1, p2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 284
    invoke-virtual {p3, v1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 286
    return-object v0
.end method

.method private getEllipsisString(Landroid/graphics/Paint;Ljava/lang/String;F)Ljava/lang/String;
    .locals 7
    .parameter "paint"
    .parameter "str"
    .parameter "maxWidth"

    .prologue
    const/4 v6, 0x0

    .line 290
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    .line 291
    .local v1, bound:Landroid/graphics/Rect;
    const-string v0, ".."

    .line 292
    .local v0, ELLIPSIS:Ljava/lang/String;
    const-string v3, ".."

    const/4 v4, 0x2

    invoke-virtual {p1, v3, v6, v4, v1}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 294
    const/4 v3, 0x1

    invoke-virtual {v1}, Landroid/graphics/Rect;->width()I

    move-result v4

    int-to-float v4, v4

    sub-float v4, p3, v4

    const/4 v5, 0x0

    invoke-virtual {p1, p2, v3, v4, v5}, Landroid/graphics/Paint;->breakText(Ljava/lang/String;ZF[F)I

    move-result v2

    .line 296
    .local v2, filteredLen:I
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v3

    if-eq v2, v3, :cond_0

    .line 297
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, v6, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ".."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 299
    :goto_0
    return-object v3

    :cond_0
    move-object v3, p2

    goto :goto_0
.end method

.method private getPreferenceIntent(I)Landroid/content/Intent;
    .locals 3
    .parameter "index"

    .prologue
    .line 265
    const/4 v0, 0x0

    .line 266
    .local v0, intent:Landroid/content/Intent;
    packed-switch p1, :pswitch_data_0

    .line 276
    :goto_0
    return-object v0

    .line 268
    :pswitch_0
    new-instance v0, Landroid/content/Intent;

    .end local v0           #intent:Landroid/content/Intent;
    const-string v1, "android.intent.action.EDIT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 269
    .restart local v0       #intent:Landroid/content/Intent;
    const-string v1, "vnd.android.cursor.item/event"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    .line 272
    :pswitch_1
    new-instance v0, Landroid/content/Intent;

    .end local v0           #intent:Landroid/content/Intent;
    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 273
    .restart local v0       #intent:Landroid/content/Intent;
    const-string v1, "com.google.android.calendar"

    const-string v2, "com.android.calendar.LaunchActivity"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    .line 266
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method private getWeekDayString(Landroid/text/format/Time;)Ljava/lang/String;
    .locals 3
    .parameter "date"

    .prologue
    .line 303
    const/4 v0, 0x0

    .line 304
    .local v0, weekDay:Ljava/lang/String;
    iget v1, p1, Landroid/text/format/Time;->weekDay:I

    packed-switch v1, :pswitch_data_0

    .line 327
    :goto_0
    return-object v0

    .line 306
    :pswitch_0
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070038

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 307
    goto :goto_0

    .line 309
    :pswitch_1
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070032

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 310
    goto :goto_0

    .line 312
    :pswitch_2
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070033

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 313
    goto :goto_0

    .line 315
    :pswitch_3
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070034

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 316
    goto :goto_0

    .line 318
    :pswitch_4
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070035

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 319
    goto :goto_0

    .line 321
    :pswitch_5
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070036

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 322
    goto :goto_0

    .line 324
    :pswitch_6
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    const v2, 0x7f070037

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 304
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method private registBlankGadget(Landroid/graphics/Rect;I)V
    .locals 9
    .parameter "area"
    .parameter "rectWidthOffset"

    .prologue
    .line 122
    new-instance v0, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    new-instance v4, Landroid/graphics/Rect;

    iget v5, p1, Landroid/graphics/Rect;->left:I

    add-int/2addr v5, p2

    iget v6, p1, Landroid/graphics/Rect;->top:I

    iget v7, p1, Landroid/graphics/Rect;->right:I

    sub-int/2addr v7, p2

    iget v8, p1, Landroid/graphics/Rect;->bottom:I

    invoke-direct {v4, v5, v6, v7, v8}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v5, 0x0

    invoke-direct {v0, p0, v4, v5}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 124
    .local v0, apptGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    iget-object v4, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    check-cast v4, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptPackageName()Ljava/lang/String;

    move-result-object v2

    .line 125
    .local v2, calendarPkg:Ljava/lang/String;
    iget-object v4, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    check-cast v4, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptClassName()Ljava/lang/String;

    move-result-object v1

    .line 126
    .local v1, calendarCls:Ljava/lang/String;
    if-eqz v2, :cond_0

    if-nez v1, :cond_1

    .line 127
    :cond_0
    iget-object v4, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 129
    const/4 v4, 0x6

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 138
    :goto_0
    const/4 v4, 0x0

    invoke-virtual {p0, v4, v0}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V

    .line 140
    return-void

    .line 131
    :cond_1
    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    .line 132
    .local v3, intent:Landroid/content/Intent;
    iget-object v4, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    check-cast v4, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptPackageName()Ljava/lang/String;

    move-result-object v5

    iget-object v4, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    check-cast v4, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptClassName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v5, v4}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 134
    invoke-virtual {v0, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setIntent(Landroid/content/Intent;)V

    .line 135
    const/4 v4, 0x2

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    goto :goto_0
.end method


# virtual methods
.method protected hasBack()Z
    .locals 1

    .prologue
    .line 84
    const/4 v0, 0x1

    return v0
.end method

.method protected hasTitle()Z
    .locals 1

    .prologue
    .line 89
    const/4 v0, 0x1

    return v0
.end method

.method protected onCreate()V
    .locals 2

    .prologue
    .line 73
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->getRowNum()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->createWidget(I)V

    .line 75
    invoke-super {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getTitlePanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    const-string v1, "Appointment Title Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 76
    invoke-super {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getCenterPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    const-string v1, "Appointment Center Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 77
    invoke-super {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getBottomPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    const-string v1, "Appointment Bottom Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 78
    invoke-super {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getFrontCenterItemPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    const-string v1, "Appointment Center Item Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 79
    invoke-super {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getBackCenterItemPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    const-string v1, "Appointment Center Item Back Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 80
    return-void
.end method

.method protected onDrawBackItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
    .locals 22
    .parameter "bitmap"
    .parameter "area"
    .parameter "index"

    .prologue
    .line 332
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->incSettingsNum()V

    .line 334
    const/16 v12, 0x8

    .line 335
    .local v12, rectWidthOffset:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v17, v0

    const v18, 0x7f060047

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v11

    .line 337
    .local v11, oneRow2DHeight:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v17, v0

    const v18, 0x7f060049

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v9

    .line 338
    .local v9, hMargin:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v17, v0

    const v18, 0x7f060048

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v15

    .line 339
    .local v15, vMargin:I
    move v8, v9

    .line 341
    .local v8, drawXOffset:I
    new-instance v7, Landroid/graphics/Canvas;

    move-object v0, v7

    move-object/from16 v1, p1

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 344
    .local v7, canvas:Landroid/graphics/Canvas;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v17, v0

    const v18, 0x7f020056

    invoke-static/range {v17 .. v18}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v13

    .line 345
    .local v13, settingIconBitmap:Landroid/graphics/Bitmap;
    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v17, v0

    div-int/lit8 v18, v11, 0x2

    add-int v17, v17, v18

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v18

    div-int/lit8 v18, v18, 0x2

    sub-int v16, v17, v18

    .line 346
    .local v16, yPos:I
    move v0, v8

    int-to-float v0, v0

    move/from16 v17, v0

    move/from16 v0, v16

    int-to-float v0, v0

    move/from16 v18, v0

    new-instance v19, Landroid/graphics/Paint;

    invoke-direct/range {v19 .. v19}, Landroid/graphics/Paint;-><init>()V

    move-object v0, v7

    move-object v1, v13

    move/from16 v2, v17

    move/from16 v3, v18

    move-object/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 347
    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v17

    add-int v8, v8, v17

    .line 350
    new-instance v10, Landroid/graphics/Paint;

    invoke-direct {v10}, Landroid/graphics/Paint;-><init>()V

    .line 351
    .local v10, infoPaint:Landroid/graphics/Paint;
    const/16 v17, 0x1

    move-object v0, v10

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 352
    sget-object v17, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object v0, v10

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 353
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v17, v0

    const v18, 0x7f06004a

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v17

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    move-object v0, v10

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 354
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v17, v0

    const v18, 0x7f050006

    invoke-virtual/range {v17 .. v18}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v17

    move-object v0, v10

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 355
    const/high16 v17, 0x3f00

    const/high16 v18, 0x3f80

    const/high16 v19, 0x3f80

    const/high16 v20, -0x100

    move-object v0, v10

    move/from16 v1, v17

    move/from16 v2, v18

    move/from16 v3, v19

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 356
    new-instance v14, Landroid/graphics/Rect;

    invoke-direct {v14}, Landroid/graphics/Rect;-><init>()V

    .line 357
    .local v14, textRt:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v17, v0

    const v18, 0x7f070024

    invoke-virtual/range {v17 .. v18}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 358
    .local v5, appSetting:Ljava/lang/String;
    const/16 v17, 0x0

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v18

    move-object v0, v10

    move-object v1, v5

    move/from16 v2, v17

    move/from16 v3, v18

    move-object v4, v14

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 360
    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v17, v0

    div-int/lit8 v18, v11, 0x2

    add-int v17, v17, v18

    invoke-virtual {v14}, Landroid/graphics/Rect;->height()I

    move-result v18

    div-int/lit8 v18, v18, 0x3

    add-int v16, v17, v18

    .line 361
    add-int v17, v8, v9

    move/from16 v0, v17

    int-to-float v0, v0

    move/from16 v17, v0

    move/from16 v0, v16

    int-to-float v0, v0

    move/from16 v18, v0

    move-object v0, v7

    move-object v1, v5

    move/from16 v2, v17

    move/from16 v3, v18

    move-object v4, v10

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 364
    new-instance v6, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    new-instance v17, Landroid/graphics/Rect;

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->left:I

    move/from16 v18, v0

    add-int v18, v18, v12

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v19, v0

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->right:I

    move/from16 v20, v0

    sub-int v20, v20, v12

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v21, v0

    add-int v21, v21, v11

    invoke-direct/range {v17 .. v21}, Landroid/graphics/Rect;-><init>(IIII)V

    const/16 v18, 0x0

    move-object v0, v6

    move-object/from16 v1, p0

    move-object/from16 v2, v17

    move-object/from16 v3, v18

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 366
    .local v6, apptGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    move-object/from16 v17, v0

    move-object v0, v6

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 367
    const/16 v17, 0x6

    move-object v0, v6

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 368
    const/16 v17, 0x1

    move-object/from16 v0, p0

    move/from16 v1, v17

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V

    .line 369
    return-void
.end method

.method protected onDrawBackTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
    .locals 1
    .parameter "bitmap"
    .parameter "area"

    .prologue
    .line 113
    const-string v0, "Ajustes del calendario"

    invoke-super {p0, p1, p2, v0}, Lcom/nemustech/regina/ElementReginaWidget;->drawTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Ljava/lang/String;)V

    .line 114
    return-void
.end method

.method protected onDrawFrontItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
    .locals 37
    .parameter "bitmap"
    .parameter "area"
    .parameter "index"

    .prologue
    .line 144
    const/16 v24, 0x8

    .line 146
    .local v24, rectWidthOffset:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mArrayAppt:Ljava/util/LinkedList;

    move-object/from16 v32, v0

    invoke-virtual/range {v32 .. v32}, Ljava/util/LinkedList;->size()I

    move-result v32

    move/from16 v0, p3

    move/from16 v1, v32

    if-lt v0, v1, :cond_0

    .line 147
    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move/from16 v2, v24

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->registBlankGadget(Landroid/graphics/Rect;I)V

    .line 261
    .end local p1
    :goto_0
    return-void

    .line 151
    .restart local p1
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mArrayAppt:Ljava/util/LinkedList;

    move-object/from16 v32, v0

    move-object/from16 v0, v32

    move/from16 v1, p3

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v19

    check-cast v19, Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;

    .line 152
    .local v19, item:Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;
    if-nez v19, :cond_1

    .line 153
    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move/from16 v2, v24

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->registBlankGadget(Landroid/graphics/Rect;I)V

    goto :goto_0

    .line 157
    :cond_1
    new-instance v11, Landroid/graphics/Canvas;

    move-object v0, v11

    move-object/from16 v1, p1

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 158
    .local v11, canvas:Landroid/graphics/Canvas;
    new-instance v23, Landroid/graphics/Paint;

    invoke-direct/range {v23 .. v23}, Landroid/graphics/Paint;-><init>()V

    .line 159
    .local v23, paint:Landroid/graphics/Paint;
    new-instance v7, Landroid/graphics/Rect;

    invoke-direct {v7}, Landroid/graphics/Rect;-><init>()V

    .line 160
    .local v7, boundsDesc:Landroid/graphics/Rect;
    new-instance v8, Landroid/graphics/Rect;

    invoke-direct {v8}, Landroid/graphics/Rect;-><init>()V

    .line 162
    .local v8, boundsTime:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f060048

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v28

    .line 163
    .local v28, vMargin:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f060049

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v15

    .line 164
    .local v15, hMargin:I
    invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->height()I

    move-result v25

    .line 165
    .local v25, rowHeight:I
    invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->width()I

    move-result v26

    .line 169
    .local v26, rowWidth:I
    const/16 v32, 0x1

    move-object/from16 v0, v23

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 170
    sget-object v32, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v23

    move-object/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 171
    const/high16 v32, 0x3f00

    const/high16 v33, 0x3f80

    const/high16 v34, 0x3f80

    const/high16 v35, -0x100

    move-object/from16 v0, v23

    move/from16 v1, v32

    move/from16 v2, v33

    move/from16 v3, v34

    move/from16 v4, v35

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 173
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f06004c

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v32

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v32, v0

    move-object/from16 v0, v23

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 174
    const-string v14, ""

    .line 175
    .local v14, description:Ljava/lang/String;
    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;->getTitle()Ljava/lang/String;

    move-result-object v32

    if-eqz v32, :cond_2

    .line 176
    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;->getTitle()Ljava/lang/String;

    move-result-object v32

    mul-int/lit8 v33, v15, 0x2

    sub-int v33, v26, v33

    move-object/from16 v0, v32

    move-object/from16 v1, v23

    move/from16 v2, v33

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RUtils;->getEllipsisString(Ljava/lang/String;Landroid/graphics/Paint;I)Ljava/lang/String;

    move-result-object v14

    .line 178
    :cond_2
    const/16 v32, 0x0

    invoke-virtual {v14}, Ljava/lang/String;->length()I

    move-result v33

    move-object/from16 v0, v23

    move-object v1, v14

    move/from16 v2, v32

    move/from16 v3, v33

    move-object v4, v7

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 180
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f06004d

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v32

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v32, v0

    move-object/from16 v0, v23

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 183
    const-string v12, ""

    .line 186
    .local v12, date:Ljava/lang/String;
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;->getBeginTime()J

    move-result-wide v33

    invoke-virtual/range {v32 .. v34}, Landroid/text/format/Time;->set(J)V

    .line 187
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gEndTime:Landroid/text/format/Time;

    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;->getEndTime()J

    move-result-wide v33

    invoke-virtual/range {v32 .. v34}, Landroid/text/format/Time;->set(J)V

    .line 189
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    move-object/from16 v0, v32

    iget v0, v0, Landroid/text/format/Time;->monthDay:I

    move/from16 v20, v0

    .line 190
    .local v20, itemDate:I
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    const/16 v33, 0x0

    invoke-virtual/range {v32 .. v33}, Landroid/text/format/Time;->toMillis(Z)J

    move-result-wide v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mDummyToday:Landroid/text/format/Time;

    move-object/from16 v34, v0

    const/16 v35, 0x0

    invoke-virtual/range {v34 .. v35}, Landroid/text/format/Time;->toMillis(Z)J

    move-result-wide v34

    sub-long v32, v32, v34

    const-wide/32 v34, 0x5265c00

    div-long v32, v32, v34

    move-wide/from16 v0, v32

    long-to-int v0, v0

    move v13, v0

    .line 192
    .local v13, dateGap:I
    if-gtz v13, :cond_4

    .line 193
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f070030

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v12

    .line 209
    :goto_1
    invoke-virtual/range {v19 .. v19}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB$Appointment;->isAllDay()Z

    move-result v32

    if-eqz v32, :cond_8

    .line 211
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f070039

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v21

    .line 226
    .local v21, moment:Ljava/lang/String;
    :goto_2
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v32

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    const-string v33, "  "

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, v32

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v27

    .line 227
    .local v27, time:Ljava/lang/String;
    const/16 v32, 0x0

    invoke-virtual/range {v27 .. v27}, Ljava/lang/String;->length()I

    move-result v33

    move-object/from16 v0, v23

    move-object/from16 v1, v27

    move/from16 v2, v32

    move/from16 v3, v33

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 229
    move v0, v15

    int-to-float v0, v0

    move/from16 v29, v0

    .line 230
    .local v29, x:F
    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v32, v0

    invoke-virtual {v7}, Landroid/graphics/Rect;->height()I

    move-result v33

    sub-int v33, v25, v33

    invoke-virtual {v8}, Landroid/graphics/Rect;->height()I

    move-result v34

    sub-int v33, v33, v34

    sub-int v33, v33, v28

    div-int/lit8 v33, v33, 0x2

    add-int v32, v32, v33

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v30, v0

    .line 233
    .local v30, y:F
    invoke-virtual/range {v23 .. v23}, Landroid/graphics/Paint;->ascent()F

    move-result v32

    move/from16 v0, v32

    neg-float v0, v0

    move/from16 v32, v0

    move/from16 v0, v32

    float-to-double v0, v0

    move-wide/from16 v32, v0

    invoke-static/range {v32 .. v33}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v32

    move-wide/from16 v0, v32

    double-to-int v0, v0

    move v6, v0

    .line 234
    .local v6, ascent:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f050008

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v32

    move-object/from16 v0, v23

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 235
    move v0, v6

    int-to-float v0, v0

    move/from16 v32, v0

    add-float v32, v32, v30

    move-object v0, v11

    move-object/from16 v1, v27

    move/from16 v2, v29

    move/from16 v3, v32

    move-object/from16 v4, v23

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 238
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f06004c

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v32

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v32, v0

    move-object/from16 v0, v23

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 239
    add-int v32, v28, v6

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v32, v0

    add-float v30, v30, v32

    .line 240
    invoke-virtual/range {v23 .. v23}, Landroid/graphics/Paint;->ascent()F

    move-result v32

    move/from16 v0, v32

    neg-float v0, v0

    move/from16 v32, v0

    move/from16 v0, v32

    float-to-double v0, v0

    move-wide/from16 v32, v0

    invoke-static/range {v32 .. v33}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v32

    move-wide/from16 v0, v32

    double-to-int v0, v0

    move v6, v0

    .line 241
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v32, v0

    const v33, 0x7f050007

    invoke-virtual/range {v32 .. v33}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v32

    move-object/from16 v0, v23

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 242
    move v0, v6

    int-to-float v0, v0

    move/from16 v32, v0

    add-float v32, v32, v30

    move-object v0, v11

    move-object v1, v14

    move/from16 v2, v29

    move/from16 v3, v32

    move-object/from16 v4, v23

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 245
    new-instance v5, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    new-instance v32, Landroid/graphics/Rect;

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->left:I

    move/from16 v33, v0

    add-int v33, v33, v24

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->top:I

    move/from16 v34, v0

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->right:I

    move/from16 v35, v0

    sub-int v35, v35, v24

    move-object/from16 v0, p2

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    move/from16 v36, v0

    invoke-direct/range {v32 .. v36}, Landroid/graphics/Rect;-><init>(IIII)V

    const/16 v33, 0x0

    move-object v0, v5

    move-object/from16 v1, p0

    move-object/from16 v2, v32

    move-object/from16 v3, v33

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 247
    .local v5, apptGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    move-object/from16 p1, v0

    .end local p1
    check-cast p1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptPackageName()Ljava/lang/String;

    move-result-object v10

    .line 248
    .local v10, calendarPkg:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    move-object/from16 p1, v0

    check-cast p1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptClassName()Ljava/lang/String;

    move-result-object v9

    .line 249
    .local v9, calendarCls:Ljava/lang/String;
    if-eqz v10, :cond_3

    if-nez v9, :cond_d

    .line 250
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    move-object/from16 v32, v0

    move-object v0, v5

    move-object/from16 v1, v32

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 251
    const/16 v32, 0x6

    move-object v0, v5

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 260
    :goto_3
    const/16 v32, 0x0

    move-object/from16 v0, p0

    move/from16 v1, v32

    move-object v2, v5

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->addGadget(ILcom/nemustech/regina/ElementReginaWidget$Gadget;)V

    goto/16 :goto_0

    .line 195
    .end local v5           #apptGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v6           #ascent:I
    .end local v9           #calendarCls:Ljava/lang/String;
    .end local v10           #calendarPkg:Ljava/lang/String;
    .end local v21           #moment:Ljava/lang/String;
    .end local v27           #time:Ljava/lang/String;
    .end local v29           #x:F
    .end local v30           #y:F
    .restart local p1
    :cond_4
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v32

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f07003a

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f07003d

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 196
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    move-object/from16 v0, v32

    iget v0, v0, Landroid/text/format/Time;->month:I

    move/from16 v22, v0

    .line 197
    .local v22, month:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    move-object/from16 v32, v0

    move-object/from16 v0, v32

    iget v0, v0, Landroid/text/format/Time;->month:I

    move/from16 v32, v0

    move/from16 v0, v32

    move/from16 v1, v22

    if-eq v0, v1, :cond_5

    .line 198
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    add-int/lit8 v33, v22, 0x1

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f07003b

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f07003e

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, v32

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 199
    :cond_5
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    move-object/from16 v0, v32

    iget v0, v0, Landroid/text/format/Time;->year:I

    move/from16 v31, v0

    .line 200
    .local v31, year:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    move-object/from16 v32, v0

    move-object/from16 v0, v32

    iget v0, v0, Landroid/text/format/Time;->year:I

    move/from16 v32, v0

    move/from16 v0, v32

    move/from16 v1, v31

    if-eq v0, v1, :cond_6

    .line 201
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v32

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f07003c

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f07003f

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, v32

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    .line 203
    :cond_6
    const/16 v32, 0x1

    move v0, v13

    move/from16 v1, v32

    if-ne v0, v1, :cond_7

    .line 204
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v32

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v33, v0

    const v34, 0x7f070031

    invoke-virtual/range {v33 .. v34}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    goto/16 :goto_1

    .line 206
    :cond_7
    new-instance v32, Ljava/lang/StringBuilder;

    invoke-direct/range {v32 .. v32}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v32

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    sget-object v33, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    move-object/from16 v0, p0

    move-object/from16 v1, v33

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->getWeekDayString(Landroid/text/format/Time;)Ljava/lang/String;

    move-result-object v33

    invoke-virtual/range {v32 .. v33}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    goto/16 :goto_1

    .line 215
    .end local v22           #month:I
    .end local v31           #year:I
    :cond_8
    sget-object v32, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    move-object/from16 v0, v32

    iget v0, v0, Landroid/text/format/Time;->hour:I

    move/from16 v16, v0

    .line 216
    .local v16, hour:I
    const/16 v32, 0xc

    move/from16 v0, v16

    move/from16 v1, v32

    if-lt v0, v1, :cond_b

    const/16 v32, 0x1

    move/from16 v18, v32

    .line 217
    .local v18, isPM:Z
    :goto_4
    const/16 v32, 0xc

    move/from16 v0, v16

    move/from16 v1, v32

    if-le v0, v1, :cond_9

    add-int/lit8 v16, v16, -0xc

    .line 218
    :cond_9
    if-nez v16, :cond_a

    const/16 v16, 0xc

    .line 220
    :cond_a
    const-string v32, "%s %d:%02d"

    const/16 v33, 0x3

    move/from16 v0, v33

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v33, v0

    const/16 v34, 0x0

    if-eqz v18, :cond_c

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v35, v0

    const v36, 0x7f07002f

    invoke-virtual/range {v35 .. v36}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v35

    :goto_5
    aput-object v35, v33, v34

    const/16 v34, 0x1

    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v35

    aput-object v35, v33, v34

    const/16 v34, 0x2

    sget-object v35, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->gBeginTime:Landroid/text/format/Time;

    move-object/from16 v0, v35

    iget v0, v0, Landroid/text/format/Time;->minute:I

    move/from16 v35, v0

    invoke-static/range {v35 .. v35}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v35

    aput-object v35, v33, v34

    invoke-static/range {v32 .. v33}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v21

    .restart local v21       #moment:Ljava/lang/String;
    goto/16 :goto_2

    .line 216
    .end local v18           #isPM:Z
    .end local v21           #moment:Ljava/lang/String;
    :cond_b
    const/16 v32, 0x0

    move/from16 v18, v32

    goto :goto_4

    .line 220
    .restart local v18       #isPM:Z
    :cond_c
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v35, v0

    const v36, 0x7f07002e

    invoke-virtual/range {v35 .. v36}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v35

    goto :goto_5

    .line 253
    .end local v16           #hour:I
    .end local v18           #isPM:Z
    .end local p1
    .restart local v5       #apptGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .restart local v6       #ascent:I
    .restart local v9       #calendarCls:Ljava/lang/String;
    .restart local v10       #calendarPkg:Ljava/lang/String;
    .restart local v21       #moment:Ljava/lang/String;
    .restart local v27       #time:Ljava/lang/String;
    .restart local v29       #x:F
    .restart local v30       #y:F
    :cond_d
    new-instance v17, Landroid/content/Intent;

    invoke-direct/range {v17 .. v17}, Landroid/content/Intent;-><init>()V

    .line 254
    .local v17, intent:Landroid/content/Intent;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    move-object/from16 p1, v0

    check-cast p1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v32

    invoke-virtual/range {v32 .. v32}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptPackageName()Ljava/lang/String;

    move-result-object v32

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mContext:Landroid/content/Context;

    move-object/from16 p1, v0

    check-cast p1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual/range {p1 .. p1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v33

    invoke-virtual/range {v33 .. v33}, Lcom/nemustech/regina/ReginaPreference;->getReginaWidgetApptClassName()Ljava/lang/String;

    move-result-object v33

    move-object/from16 v0, v17

    move-object/from16 v1, v32

    move-object/from16 v2, v33

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 256
    move-object v0, v5

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setIntent(Landroid/content/Intent;)V

    .line 257
    const/16 v32, 0x2

    move-object v0, v5

    move/from16 v1, v32

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    goto/16 :goto_3
.end method

.method protected onDrawFrontTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
    .locals 3
    .parameter "bitmap"
    .parameter "area"

    .prologue
    .line 104
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    .line 105
    .local v0, date:Ljava/util/Date;
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget v1, v1, Landroid/text/format/Time;->year:I

    const/16 v2, 0x76c

    sub-int/2addr v1, v2

    invoke-virtual {v0, v1}, Ljava/util/Date;->setYear(I)V

    .line 106
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget v1, v1, Landroid/text/format/Time;->month:I

    invoke-virtual {v0, v1}, Ljava/util/Date;->setMonth(I)V

    .line 107
    iget-object v1, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget v1, v1, Landroid/text/format/Time;->monthDay:I

    invoke-virtual {v0, v1}, Ljava/util/Date;->setDate(I)V

    .line 108
    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->formatDate(Ljava/util/Date;I)Ljava/lang/String;

    move-result-object v1

    invoke-super {p0, p1, p2, v1}, Lcom/nemustech/regina/ElementReginaWidget;->drawTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Ljava/lang/String;)V

    .line 109
    return-void
.end method

.method protected onResume()V
    .locals 0

    .prologue
    .line 118
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->update()V

    .line 119
    return-void
.end method

.method protected onUpdate()Z
    .locals 8

    .prologue
    const/4 v1, 0x0

    .line 94
    iget-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    invoke-virtual {v0}, Landroid/text/format/Time;->setToNow()V

    .line 95
    iget-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mDummyToday:Landroid/text/format/Time;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget v4, v2, Landroid/text/format/Time;->monthDay:I

    iget-object v2, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget v5, v2, Landroid/text/format/Time;->month:I

    iget-object v2, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget v6, v2, Landroid/text/format/Time;->year:I

    move v2, v1

    move v3, v1

    invoke-virtual/range {v0 .. v6}, Landroid/text/format/Time;->set(IIIIII)V

    .line 98
    iget-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mApptDB:Lcom/nemustech/regina/widgets/appointment/AppointmentDB;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    invoke-virtual {v2, v1}, Landroid/text/format/Time;->toMillis(Z)J

    move-result-wide v1

    const/4 v3, 0x7

    iget-object v4, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mToday:Landroid/text/format/Time;

    iget-wide v4, v4, Landroid/text/format/Time;->gmtoff:J

    const-wide/16 v6, 0x3e8

    mul-long/2addr v4, v6

    long-to-int v4, v4

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/nemustech/regina/widgets/appointment/AppointmentDB;->getAppointments(JII)Ljava/util/LinkedList;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/widgets/appointment/AppointmentWidget;->mArrayAppt:Ljava/util/LinkedList;

    .line 99
    const/4 v0, 0x1

    return v0
.end method

.method protected onUpdateTitle()Z
    .locals 1

    .prologue
    .line 373
    const/4 v0, 0x1

    return v0
.end method
